<form class="loginForm" action="{loginUrl}" method="post" name="loginForm">
	<input type="hidden" name="loginformsubmit" value="1"/>
	<p class="loginError {loginErrorVisible}">{loginErrorText}</p>
	<div class="input">
		<input id="userInputId" name="username" class="input_txt" type="text" onfocus="userFieldOnFocus();" onblur="userFieldLoseFocus();" tabindex="1"></input>
	</div>
	<div class="input">
		<input id="passwordInputId" name="password" class="input_txt" type="password" onfocus="passwordFieldOnFocus();" onblur="passwordFieldLoseFocus();" tabindex="2"></input>
		<input id="loginSubmitButton" type="submit" style="display: none;"/>
	</div>
	<div class="input">
		<input id="checkboxHiddenField" name="rememberMe" type="hidden" value="0" tabindex="4"></input>
		<p>{loginbox_autologin}&nbsp;<img id="loginCheckbox" src="site/images/unselected.gif" onclick="loginCheckboxClick();"/></p>
	</div>
	<div class="input">
		<a class="login_link" href="#" onClick="document.forms.loginForm.submit();" tabindex="3">{loginbox_but_login}</a> | 
		<a class="login_link" href="{link_registration}" tabindex="5">{loginbox_registration}</a><br/> 
		<a class="login_link" href="{link_passwordReminder}" tabindex="6">{loginbox_reminder}</a>
	</div>
</form>
<script type="text/javascript">
<!--
resetInputTexts();

function loginCheckboxClick() {
	var checkboxImg = $('loginCheckbox');
	var checkboxHiddenField = $('checkboxHiddenField');
	
	if (checkboxImg != null && checkboxHiddenField != null) {
		if (checkboxHiddenField.value == 0) {
			checkboxImg.src = 'site/images/selected.gif';
			checkboxHiddenField.value = 1;
		} else {
			checkboxImg.src = 'site/images/unselected.gif';
			checkboxHiddenField.value = 0;
		}
	}	
}

function resetInputTexts() {
	resetUserText();
	resetPasswordText();
}

function resetUserText() {
	var userField = $('userInputId');
	if (userField != null)
		userField.value = '{loginbox_userInputIdValue}';
}

function resetPasswordText() {
	var passwordField = $('passwordInputId');
	if (passwordField != null) {		
		passwordField.value = 'pass';
	}
}

// user field fokuszba kerul
function userFieldOnFocus() {
	var userField = $('userInputId');

	if (userField != null)
		userField.value = '';		
}

// user field elveszti a fokuszt
function userFieldLoseFocus() {
	var userField = $('userInputId');

	if (userField != null) {
		if (userField.value.length <= 0)
			resetUserText(); 
	}
		
}

// password field fokuszba kerul
function passwordFieldOnFocus() {
	var passwordField = $('passwordInputId');
	
	if (passwordField != null) {
		passwordField.value = '';		
	}
}

// password field elveszti a fokuszt
function passwordFieldLoseFocus() {
	var passwordField = $('passwordInputId');

	if (passwordField != null) {
		if (passwordField.value.length <= 0)
			resetPasswordText();
	}
}
//-->
</script>